#ifndef __MESSAGE_HPP__
#define __MESSAGE_HPP__
#include <string>
using std::string;

namespace wd{
enum TaskType {
    TASK_LOGIN_SECTION1 = 1, 		//客户->服务端
    TASK_LOGIN_SECTION1_RESP_OK,  	//服务端->客户
    TASK_LOGIN_SECTION1_RESP_ERROR, //服务端->客户
    TASK_LOGIN_SECTION2,			//客户->服务端
    TASK_LOGIN_SECTION2_RESP_OK,	//服务端->客户
    TASK_LOGIN_SECTION2_RESP_ERROR,	//服务端->客户
 };


struct Packet{
    int type;
    int length;
    string msg;
};

struct TLV{
    int type;
    int length;
    char data[1024];
};



}

#endif // __MESSAGE_HPP__

